const exec = require('cordova/exec');

exports.callNativeMethod = function (params, success, error) {
  let { action, payload } = params;
  exec(success, error, 'NativeInvoker', action, [payload]);
};
